<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>CRUD Generator - 预览</title>
    
    <!-- Bootstrap CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Bootstrap Icons -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.0/font/bootstrap-icons.css" rel="stylesheet">
    <!-- Google Fonts -->
    <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
    <!-- Prism.js for code highlighting -->
    <link href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism-tomorrow.min.css" rel="stylesheet">
    
    <!-- Common CSS -->
    <link href="/css/common.css" rel="stylesheet">
    
    <style>
        body {
            font-family: 'Inter', sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
        }
        
        .preview-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }
        
        .preview-card {
            background: white;
            border-radius: 20px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
            overflow: hidden;
            margin-bottom: 30px;
        }
        
        .preview-header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 30px;
            text-align: center;
        }
        
        .preview-content {
            padding: 30px;
        }
        
        .page-link {
            display: inline-block;
            margin: 10px;
            padding: 15px 30px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            text-decoration: none;
            border-radius: 10px;
            transition: all 0.3s ease;
        }
        
        .page-link:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.2);
            color: white;
        }
        
        .feature-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
            margin-top: 30px;
        }
        
        .feature-item {
            background: #f8f9fa;
            padding: 20px;
            border-radius: 10px;
            text-align: center;
        }
        
        .feature-icon {
            font-size: 2rem;
            color: #667eea;
            margin-bottom: 10px;
        }
    </style>
</head>
<body>
    <div class="preview-container">
        <div class="preview-card">
            <div class="preview-header">
                <h1 class="display-4 mb-3">
                    <i class="bi bi-code-square me-3"></i>
                    CRUD Generator
                </h1>
                <p class="lead mb-0">基于SQL自动生成CRUD接口的智能代码生成平台</p>
            </div>
            
            <div class="preview-content">
                <div class="text-center mb-4">
                    <h3>前端页面预览</h3>
                    <p class="text-muted">点击下方链接查看各个页面的效果</p>
                </div>
                
                <div class="text-center">
                    <a href="src/main/resources/templates/index.html" class="page-link">
                        <i class="bi bi-house me-2"></i>
                        首页
                    </a>
                    <a href="src/main/resources/templates/generator.html" class="page-link">
                        <i class="bi bi-code me-2"></i>
                        代码生成器
                    </a>

                </div>
                
                <div class="feature-grid">
                    <div class="feature-item">
                        <div class="feature-icon">
                            <i class="bi bi-palette"></i>
                        </div>
                        <h5>现代化设计</h5>
                        <p class="text-muted mb-0">采用现代化的UI设计，提供优秀的用户体验</p>
                    </div>
                    
                    <div class="feature-item">
                        <div class="feature-icon">
                            <i class="bi bi-phone"></i>
                        </div>
                        <h5>响应式布局</h5>
                        <p class="text-muted mb-0">完美适配各种设备，支持移动端和桌面端</p>
                    </div>
                    
                    <div class="feature-item">
                        <div class="feature-icon">
                            <i class="bi bi-lightning"></i>
                        </div>
                        <h5>交互动画</h5>
                        <p class="text-muted mb-0">丰富的动画效果，提升用户操作体验</p>
                    </div>
                    
                    <div class="feature-item">
                        <div class="feature-icon">
                            <i class="bi bi-gear"></i>
                        </div>
                        <h5>组件化开发</h5>
                        <p class="text-muted mb-0">模块化的组件设计，便于维护和扩展</p>
                    </div>
                </div>
                
                <div class="alert alert-info mt-4">
                    <h6><i class="bi bi-info-circle me-2"></i>技术特性</h6>
                    <ul class="mb-0">
                        <li>基于Bootstrap 5.3构建的响应式界面</li>
                        <li>使用Inter字体提供更好的阅读体验</li>
                        <li>集成Prism.js实现代码语法高亮</li>
                        <li>采用CSS Grid和Flexbox实现灵活布局</li>
                        <li>支持深色模式和主题切换</li>
                        <li>优化的动画效果和过渡动画</li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
    
    <!-- Bootstrap JS -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    <!-- Prism.js -->
    <script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/prism-core.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/plugins/autoloader/prism-autoloader.min.js"></script>
    <!-- Common JS -->
    <script src="/js/common.js"></script>
</body>
</html>